<?php

 class CoHelloViewHtml extends AnSekitViewHtml
 {
 	/**
	 * Constructor.
	 *
	 * @param 	object 	An optional KConfig object with configuration options
	 */
	public function __construct(KConfig $config)
	{
		parent::__construct($config);

		//mixin the view action
		$this->mixin( KFactory::get('lib.anahita.sekit.action.mixin') );		
	}
	 	
 	/**
 	 * Rendered Form Layout is rendered
 	 * 
 	 */
 	protected function _layoutForm()
 	{
 		//create an empty post
 		//if there's no post
 		if ( empty($this->post) ) {
 			$this->assign('post', AnDomain::getRepository('site::com.hello.model.post')->getEntity());
 		}
 	}
 }